package action.back;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;



public class UUIDBaseAction extends BaseAction{
	
	protected String id;
	protected String[] ids;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String[] getIds() {
		return ids;
	}
	public void setIds(String[] ids) {
		this.ids = ids;
	}
	
	public String getId(HttpServletRequest request) {
		
		String id = request.getParameter("id");
		if(StringUtils.isNotEmpty(id)){
			return id;
		}
		return utils.StringHelper.uuid();
	}
}
